<?php
include "../lib/DAL/DmQuanHeGiaDinh.php";

class DmQuanHeGiaDinhBLL{
    function __construct(){
    }
    
    function __destruct(){
    }

    public function SetqhgdBLL($row)
    {
        $qhgd= new DmQuanHeGiaDinh();
        $qhgd->setQHGD($row['madm_qhgd'],$row['ten_qhgd']);
        return $qhgd;   
    }
    
    public function GetlistQHGD(){
        $ex=mysql_query("SELECT * FROM dm_qhgd");
        if($ex){
            while($row=mysql_fetch_array($ex)){
                $ds[]=$this->SetqhgdBLL($row);
            }
        }
     return $ds;
    }
}
?>